package com.niit.search.service;

import com.niit.search.entity.SearchHistory;
import com.niit.search.entity.Topic;
import java.util.List;

public interface SearchHistoryService {
    void saveHistory(Long userId, String keyword);
    List<SearchHistory> getHistory(Long userId);
    boolean deleteHistoryById(Long userId, Long id);
    boolean deleteHistoryByKeyword(Long userId, String keyword);
    List<Topic> getHotTopics();
}